package com.example.origin.alibaba.bsever.service.impl;

import com.example.origin.alibaba.bsever.service.DemoFeign;
import com.delicacy.grape.alibaba.common.dto.User;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class DemoFallBackHandler implements DemoFeign {
    @Override
    public User getUser(String userId) {
        User user = new User();
        user.setId("0");
        return user;
    }

    @Override
    public List<User> listUser() {
        return new ArrayList<>();
    }
}
